package com.akuhome.resource.controller;

import com.akuhome.resource.dto.Form;
import com.akuhome.resource.dto.Menu;
import com.akuhome.resource.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/common")
public class CommonController {

    @Autowired
    private CommonService commonService;

    @GetMapping("/menu")
    public Object getMenu(){
        return commonService.findAllMenu();
    }

//    @GetMapping("/form")
//    public Object getForm(){
//        return new Form();
//    }
}
